package com.geeksaga.domain;

import com.geeksaga.annotation.PrintToString;

/**
 * @author newbie
 * @since 0.1
 */
public class SagaFile extends BaseObject {
	
	private static final long serialVersionUID = 4545187428637700144L;
	
	@PrintToString private String sid;
	@PrintToString private String targetId;
	@PrintToString private String targetSid;
    @PrintToString private String attachOrder;
	@PrintToString private String originalName;
	@PrintToString private String fileName;
	@PrintToString private String fileExtension;
	@PrintToString private String fileSize;
	@PrintToString private String fileDesc;
	@PrintToString private String attachType;
	@PrintToString private String downloadCnt;
	
	public SagaFile() {
	}
	
	public SagaFile(String targetSid) {
		this.targetSid = targetSid;
	}
	
    @Override
    public void setAsText(String text) throws IllegalArgumentException {
        setValue(new SagaFile(text));
    }
    
	public String getSid() {
		return sid;
	}
	public void setSid(String sid) {
		this.sid = sid;
	}
    public String getTargetId() {
        return targetId;
    }
    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }
    public String getTargetSid() {
        return targetSid;
    }
    public void setTargetSid(String targetSid) {
        this.targetSid = targetSid;
    }
	public String getAttachOrder() {
		return attachOrder;
	}
	public void setAttachOrder(String attachOrder) {
		this.attachOrder = attachOrder;
	}
	public String getOriginalName() {
		return originalName;
	}
	public void setOriginalName(String originalName) {
		this.originalName = originalName;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public String getFileExtension() {
		return fileExtension;
	}
	public void setFileExtension(String fileExtension) {
		this.fileExtension = fileExtension;
	}
	public String getFileSize() {
		return fileSize;
	}
	public void setFileSize(String fileSize) {
		this.fileSize = fileSize;
	}
	public String getFileDesc() {
		return fileDesc;
	}
	public void setFileDesc(String fileDesc) {
		this.fileDesc = fileDesc;
	}
	public String getAttachType() {
		return attachType;
	}
	public void setAttachType(String attachType) {
		this.attachType = attachType;
	}
	public String getDownloadCnt() {
		return downloadCnt;
	}
	public void setDownloadCnt(String downloadCnt) {
		this.downloadCnt = downloadCnt;
	}
}